package lu.med.praxiswahl.wahlumed.client.menustructure;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import lu.med.praxiswahl.wahlumed.client.wclient.Main;


/**
 * 
 * @author Lars Holger Roth
 */
public class ScreensaverActionListener implements ActionListener
{
    private Main dataManager;

    public ScreensaverActionListener(Main dataManager)
    {
	this.dataManager = dataManager;
    }

    @Override
    public void actionPerformed(ActionEvent e)
    {
	// Ruft aktuelle den Standardbildschirmschoner win32/ssstars.scr
	try
	{
	    Runtime.getRuntime().exec(dataManager.getScreensaver());
	}
	catch (Exception ee)
	{
	}
    }
}
